<template>
  <div id="app">
    <ul>
      <li v-for="(item,index) in myArr" :key="index">{{item}}</li>
    </ul>
    <button @click="runFn">走一走</button>
  </div>
</template>

<script>
export default {
  data(){
    return {
      myArr: ["帅哥", "美女", "程序猿"],
    }
  }
    ,
    methods: {
      runFn(){
      let newArr=this.myArr.slice(1);
      newArr.push(this.myArr[0])
      this.myArr=newArr
      }
    }

}
</script>